03. 练习:LEFT 与 RIGHT

LEFT & RIGHT 练习

  1. accounts 表格中,有一个列存储的是每个公司的 网站 。最后三个数字表示他们使用的是什么类型的网址。 此处 给出了扩展(和价格)列表。请获取这些扩展并得出 accounts 表格中每个网址类型的存在数量。

  2. 对于公司名称(甚至名称的第一个字母)的作用存在颇多争议 - https://www.entrepreneur.com/article/237643 。请从 accounts 表格中获取每个公司名称的第一个字母,看看以每个字母(数字)开头的公司名称分布情况。

  3. 使用 accounts 表格和 CASE 语句创建两个群组:一个是以数字开头的公司名称群组,另一个是以字母开头的公司名称群组。以字母开头的公司名称所占的比例是多少?

  4. 元音是指 a e i o u 。有多少比例的公司名称以元音开头,以其他音节开头的公司名称百分比是多少?

Workspace

This section contains either a workspace (it can be a Jupyter Notebook workspace or an online code editor work space, etc.) and it cannot be automatically downloaded to be generated here. Please access the classroom with your account and manually download the workspace to your local machine. Note that for some courses, Udacity upload the workspace files onto https://github.com/udacity , so you may be able to download them there.

Workspace Information:

  • Default file path:
  • Workspace type: sql-evaluator
  • Opened files (when workspace is loaded): n/a